package com.cn.why.film.filmindex.repository;

import com.cn.why.film.filmindex.entity.ProOutlineInfomation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;



@Transactional
public interface InformationRepository extends JpaRepository<ProOutlineInfomation,Integer>, JpaSpecificationExecutor<ProOutlineInfomation> {
    @Query(value = "select pro_number from pro_outline_infomation where pro_type = ?1",nativeQuery = true)
    Integer getProNumber(String proType);
}
